package com.ccom.starter.cloud.config;

import com.ccom.core.common.exception.CcomBootExceptionHandler;
import com.ccom.core.common.util.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author zjj
 * @date 2021/10/29 14:23
 * @description
 */
@Configuration
@Import({FeignConfig.class, PersonBeanConfiguration.class, FeignDisableHystrixConfiguration.class})
public class ServiceConfig {

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }

    @Bean
    public CcomBootExceptionHandler ccomBootExceptionHandler() {
        return new CcomBootExceptionHandler();
    }

}
